import React, { PureComponent } from 'react';
import { DragDecorator } from '../../decorator';

@DragDecorator()
class ToolboxButton extends PureComponent {
  render() {
    const { connectDragSource, title } = this.props;
    return connectDragSource(<div className="element">{title}</div>);
  }
}

export default ToolboxButton;
